<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition
	template="/administration/general/templates/template.xhtml">
	<ui:define name="content">
		<h:form>
			<h:inputText styleClass="date"></h:inputText>
		</h:form>

		<h:dataTable value="#{listFranchises.franchises}" var="franchise"
			styleClass="order-table" headerClass="order-table-header"
			rowClasses="order-table-odd-row,order-table-even-row">

			<h:column>
				<!-- column header -->
				<f:facet name="header">ID</f:facet>
				<!-- row record -->
    				#{franchise.id}
    			</h:column>

			<h:column>
				<f:facet name="header">Nombre</f:facet>
    				#{franchise.nameFranchise}
    			</h:column>

			<h:column>
				<f:facet name="header">Nombre Contacto</f:facet>
    				#{franchise.userCompleteName}
    			</h:column>

			<h:column>
				<f:facet name="header">URL TC</f:facet>
    				#{franchise.creditCardURLValidation}
    			</h:column>

			<h:column>
				<f:facet name="header">URL TD</f:facet>
    				#{franchise.debitCardURLValidation}
    			</h:column>

		</h:dataTable>

		<script>
			$(".date").dateinput();
		</script>
	</ui:define>
</ui:composition>
</html>